package chapter5;

public class FbN {
    public static void main(String[] args) {
        int num1=1;
        int num2=1;
        int num3;
        int i=2;
        System.out.print(num1+","+num2+",");
        while(i<20){
            num3=num1+num2;
            System.out.print(num3+",");
            num1=num2;
            num2=num3;
            i++;
            if(i%5==0){
                System.out.println();
            }
        }
    }
}
